﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class MonoBehaviourCallBack : MonoBehaviour {
    private Action m_onDisable;

    public Action OnDisableCallBack
    {
        get
        {
            return m_onDisable;
        }

        set
        {
            m_onDisable = value;
        }
    }

    private void OnDisable()
    {
        if (m_onDisable!=null)
        {
            m_onDisable();
        }

    }
}
